﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Service.DataTransferObjects;

namespace MvcApplicationEmpty.Models
{
    public static class Mapper
    {
        public static CustomerModel ToModel(this CustomerDTO customer)
        {
            return new CustomerModel
                       {
                           Name = customer.Name,
                           CompanyName = customer.CompanyName
                       };
        }
    }
}